-- GENERATED SPELL FOR [Wildspawn Trickster] --


function spell0_11453(pUnit, Event) --@Curse of Impotence,n/a--
pUnit:FullCastSpellOnTarget(22371,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11453', 597, 1)
end

function spell1_11453(pUnit, Event) --@Curse of Weakness,n/a--
pUnit:FullCastSpellOnTarget(12493,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11453', 586, 1)
end

function spell2_11453(pUnit, Event) --@Paralyzing Poison,n/a--
pUnit:FullCastSpellOnTarget(3609,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11453', 8303, 1)
end

function Sorts_11453(pUnit, Event)
local choix_sorts_11453 = math.random(0, 2)
if choix_sorts_11453 == 0 then
pUnit:RegisterEvent('spell0_11453', 1, 1)
end
if choix_sorts_11453 == 1 then
pUnit:RegisterEvent('spell1_11453', 1, 1)
end
if choix_sorts_11453 == 2 then
pUnit:RegisterEvent('spell2_11453', 1, 1)
end
end

function mob11453_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11453', math.random(1500, 3000), 1)
end

function mob11453_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11453_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11453_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11453, 1, 'mob11453_Action')
RegisterUnitEvent(11453, 2, 'mob11453_Leave')
RegisterUnitEvent(11453, 3, 'mob11453_Kill')
RegisterUnitEvent(11453, 4, 'mob11453_Die')
